package com.example.cricketscorer.client;

import com.example.cricketscorer.client.presenter.BattingPresenter;
import com.example.cricketscorer.client.presenter.RootScorerPresenter;
import com.example.cricketscorer.client.presenter.ScoringActionsPresenter;
import com.example.cricketscorer.client.view.RootScorerView;
import com.example.cricketscorer.client.widget.interfaces.IWidget;
import com.mvp4g.client.annotation.Event;
import com.mvp4g.client.annotation.Events;
import com.mvp4g.client.annotation.Start;
import com.mvp4g.client.event.EventBus;

@Events (startView = RootScorerView.class)
public interface CricketScorerEventBus extends EventBus {

	@Event( handlers = RootScorerPresenter.class )
	public void changeBattingWidget(IWidget widget );
	
	@Event( handlers = RootScorerPresenter.class )
	public void changeActionsWidget(IWidget widget );
	
	@Start
	@Event( handlers = { BattingPresenter.class, ScoringActionsPresenter.class } )
	public void start();
}
